Skip to content

Remove the icon for notification actions#6821

Open
ChadKillingsworth wants to merge 4 commits into
home-assistant:mainfrom
ChadKillingsworth:feature/action-icon-null
Open

Remove the icon for notification actions#6821
ChadKillingsworth wants to merge 4 commits into
home-assistant:mainfrom
ChadKillingsworth:feature/action-icon-null

Conversation

@ChadKillingsworth
Copy link
Copy Markdown

Summary

The icon only shows on Android Auto and in the Head's Up view, completely replaces the action title.

PXL_20260503_191217585

After the change, the action title correctly shows up:

Screenshot 2026-05-08 at 9 00 50 AM

Local testing demonstrated that setting a custom icon as requested in #6736 had the same effect as setting the icon to null - the custom icon did not show.

Checklist

  • New or updated tests have been added to cover the changes following the testing guidelines.
  • The code follows the project's code style and best_practices.
  • The changes have been thoroughly tested, and edge cases have been considered.
  • Changes are backward compatible whenever feasible. Any breaking changes are documented in the changelog for users and/or in the code for developers depending on the relevance.

Screenshots

See screenshots above. The change should have no effect between light and dark mode.

Link to pull request in documentation repositories

Because custom icons were not supported already, no changes to documentation should be needed.

The icon only shows on Android Auto and in the Head's Up view, completely replaces the action title.
Copilot AI review requested due to automatic review settings May 8, 2026 17:02
Copy link
Copy Markdown

@home-assistant home-assistant Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @ChadKillingsworth

It seems you haven't yet signed a CLA. Please do so here.

Once you do that we will be able to review and accept this pull request.

Thanks!

@home-assistant home-assistant Bot marked this pull request as draft May 8, 2026 17:02
@home-assistant
Copy link
Copy Markdown

home-assistant Bot commented May 8, 2026

Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍

Learn more about our pull request process.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts how notification action buttons are built so that action titles remain visible (not replaced by an icon) in Android Auto and heads-up notifications.

Changes:

  • Remove the icon from “regular” notification actions by building the action with a null icon.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@ChadKillingsworth ChadKillingsworth marked this pull request as ready for review May 8, 2026 21:54
@home-assistant home-assistant Bot dismissed their stale review May 8, 2026 21:54

Stale

@ChadKillingsworth
Copy link
Copy Markdown
Author

I'm concerned that wear OS requires an icon and that this change, while beneficial to Android Auto, will negatively impact watches.

@jpelgrom
Copy link
Copy Markdown
Member

jpelgrom commented May 9, 2026

I'm concerned that wear OS requires an icon and that this change, while beneficial to Android Auto, will negatively impact watches.

Wear OS 3+ doesn't show notification action icons in the default and Samsung skins as far as I'm aware. Is there a specific reason for your concern?

@ChadKillingsworth
Copy link
Copy Markdown
Author

My concern was just unfamiliarity with that device type and light research on the subject.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Request: Notification_Icon for actions on Android Auto(motive)

5 participants